package org.zhuyx.ch01.shili.main;

import org.zhuyx.ch01.factory.PetDaoFactory;
import org.zhuyx.ch01.shili.entity.Pet;
import org.zhuyx.ch01.shili.service.PetService;
import org.zhuyx.ch01.shili.service.impl.PetServiceImpl;

/**
 * @author 茜茜
 * @date 2024-12-05 11:24
 */
public class Main {
    public static void main(String[] args) {
        PetDaoFactory.defaultBeanName="petDaoOracleImpl";
        PetService petService=new PetServiceImpl();
        Pet pet=new Pet();
        pet.setName("小黑");
        petService.insert(pet);
    }
}
